package com.ruoyi.shop.member.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 会员积分对象 shop_member_point
 * 
 * @author xuxiang
 */
public class ShopMemberPoint extends BaseEntity {
	private static final long serialVersionUID = 1L;

	/** 积分id */
	private Long pointId;

	/** 会员id */
	@Excel(name = "会员id")
	private Long memberId;

	/** 变动类型 1增加-1减少 */
	@Excel(name = "变动类型")
	private Integer changeType;

	/** 变动值 */
	@Excel(name = "变动值")
	private BigDecimal value;

	/** 剩余积分 */
	@Excel(name = "剩余积分")
	private BigDecimal balance;

	/** 数据类型 */
	@Excel(name = "数据类型")
	private String dataType;

	/** 关联数据Id */
	@Excel(name = "关联数据Id")
	private String dataId;

	/** 积分标题 */
	@Excel(name = "标题")
	private String title;

	/** 操作类别 */
	@Excel(name = "操作类别", readConverterExp = "0=会员1后台")
	private Integer operType;

	public void setPointId(Long pointId) {
		this.pointId = pointId;
	}

	public Long getPointId() {
		return pointId;
	}

	public void setMemberId(Long memberId) {
		this.memberId = memberId;
	}

	public Long getMemberId() {
		return memberId;
	}

	public void setChangeType(Integer changeType) {
		this.changeType = changeType;
	}

	public Integer getChangeType() {
		return changeType;
	}

	public void setBalance(BigDecimal balance) {
		this.balance = balance;
	}

	public BigDecimal getBalance() {
		return balance;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Integer getOperType() {
		return operType;
	}

	public void setOperType(Integer operType) {
		this.operType = operType;
	}

	public BigDecimal getValue() {
		return value;
	}

	public void setValue(BigDecimal value) {
		this.value = value;
	}

	public String getDataType() {
		return dataType;
	}

	public void setDataType(String dataType) {
		this.dataType = dataType;
	}

	public String getDataId() {
		return dataId;
	}

	public void setDataId(String dataId) {
		this.dataId = dataId;
	}

	@Override
	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("pointId", getPointId())
				.append("memberId", getMemberId()).append("dataId", getDataId()).append("dataType", getDataType())
				.append("changeType", getChangeType()).append("value", getValue()).append("balance", getBalance())
				.append("title", getTitle()).append("createBy", getCreateBy()).append("createTime", getCreateTime())
				.append("operType", getOperType()).toString();
	}
}
